package fractal.view;

import fractal.action.AppAction;
import javax.swing.JCheckBoxMenuItem;

/** Class extends JCheckBoxMenuItem */
public class MenuItemCheck extends JCheckBoxMenuItem {

	/** constructor argument: item name, action name, has selected */
	public MenuItemCheck(String itemName, String actionName, boolean select) {
		super(itemName);
		super.setSelected(select);
		super.addActionListener(new AppAction(actionName));
	}

	/** constructor argument: item name, action name, has selected, application view */
	public MenuItemCheck(String itemName, String actionName, boolean select, AppView appView) {
		super(itemName);
		super.setSelected(select);
		super.addActionListener(new AppAction(actionName, appView));
	}
}
